//
// Decompiled by Jadx - 464ms
//
package me.plusne.GreenDao.dao;

import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import androidx.activity.b;
import fm.m;
import org.greenrobot.greendao.database.DatabaseStatement;
import x.a;
import x.d;

public final class TopLabelDbDao extends a<m, Long> {
    public static final String TABLENAME = "TOP_LABEL_DB";

    public class Properties {
        public static final d Id = new d(0, Long.class, "id", true, "_id");
        public static final d Top = new d(1, String.class, "top", false, "TOP");
        public static final d Title = new d(2, String.class, "title", false, "TITLE");
    }

    public TopLabelDbDao(g.a aVar) {
        super(aVar);
    }

    public static void createTable(org.greenrobot.greendao.database.Database aVar, boolean z) {
        aVar.d("CREATE TABLE " + (z ? "IF NOT EXISTS " : "") + "\"TOP_LABEL_DB\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"TOP\" TEXT,\"TITLE\" TEXT);");
    }

    public static void dropTable(org.greenrobot.greendao.database.Database aVar, boolean z) {
        String str;
        StringBuilder sb = new StringBuilder("DROP TABLE ");
        if (z) {
            str = "IF EXISTS ";
        } else {
            str = "";
        }
        b.v(sb, str, "\"TOP_LABEL_DB\"", aVar);
    }

    public final void a(SQLiteStatement sQLiteStatement, Object obj) {
        m mVar = (m) obj;
        sQLiteStatement.clearBindings();
        Long l = mVar.a;
        if (l != null) {
            sQLiteStatement.bindLong(1, l.longValue());
        }
        String str = mVar.b;
        if (str != null) {
            sQLiteStatement.bindString(2, str);
        }
        String str2 = mVar.c;
        if (str2 != null) {
            sQLiteStatement.bindString(3, str2);
        }
    }

    public final void b(Object obj, DatabaseStatement cVar) {
        m mVar = (m) obj;
        cVar.k();
        Long l = mVar.a;
        if (l != null) {
            cVar.j(1, l.longValue());
        }
        String str = mVar.b;
        if (str != null) {
            cVar.i(2, str);
        }
        String str2 = mVar.c;
        if (str2 != null) {
            cVar.i(3, str2);
        }
    }

    public final Long c(Object obj) {
        m mVar = (m) obj;
        if (mVar != null) {
            return mVar.a;
        }
        return null;
    }

    public final Object d(Cursor cursor) {
        return new m(cursor.isNull(0) ? null : Long.valueOf(cursor.getLong(0)), cursor.isNull(1) ? null : cursor.getString(1), cursor.isNull(2) ? null : cursor.getString(2));
    }

    public final Long e(Cursor cursor) {
        if (cursor.isNull(0)) {
            return null;
        }
        return Long.valueOf(cursor.getLong(0));
    }

    public final Long f(long j, Object obj) {
        ((m) obj).a = Long.valueOf(j);
        return Long.valueOf(j);
    }
}
